package com.example.xunwuproject.service.search;

import com.example.xunwuproject.service.ServiceMultiResult;
import com.example.xunwuproject.service.ServiceResult;
import com.example.xunwuproject.web.form.RentSearch;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2019-03-13
 **/
public interface ISearchService {

    /**
     * 索引目标房源
     * @param houseId
     */
    boolean index(Long houseId);

    /**
     * 移除房源索引
     * @param houseId
     */
    void remove(Long houseId);

    ServiceMultiResult<Long> query(RentSearch rentSearch);

    ServiceResult<List<String>> suggest(String prefix);

    ServiceResult<Long> aggregateDistrictHouse(String cityEnName, String regionEnName, String district);
}
